package org.ccay.manage.log.service.impl;

import java.io.Serializable;
import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import org.ccay.audit.dao.IAuditLogDao;
import org.ccay.audit.vo.LogVO;
import org.ccay.core.base.PageVO;
import org.ccay.core.base.PagedResult;
import org.ccay.excel.exporter.IExcelDataProvider;

/**
 * 用户登录统计导出数据客户提供类
 * @author chaowangbang
 * @since：2012-6-7
 *
 */
@Named ("IExcelDataProvider.userEnterStatDataProvider")
public class UserEnterStatDataProvider implements IExcelDataProvider {

	@Inject
	private IAuditLogDao dao;
	/* (non-Javadoc)
	 * @see www.ccay.org.ccay.excel.exporter.IExcelDataProvider#getBatchData(java.io.Serializable, www.ccay.org.ccay.core.base.PageVO)
	 */
	public List<?> getBatchData(Serializable conditionObject, PageVO pageVO) {
		LogVO logVO = (LogVO) conditionObject;
		List<LogVO> logList = null;
		PagedResult<LogVO> resultList= dao.findUserStatisticsList(logVO, pageVO);
		logList = resultList.getResult();
		return logList;
	}

}
